-- GENERATED SPELL FOR [Lieutenant Haggerdin] --


function spell0_13841(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(19130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13841', 0, 1)
end

function spell1_13841(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_13841', 5268, 1)
end

function Sorts_13841(pUnit, Event)
local choix_sorts_13841 = math.random(0, 1)
if choix_sorts_13841 == 0 then
pUnit:RegisterEvent('spell0_13841', 1, 1)
end
if choix_sorts_13841 == 1 then
pUnit:RegisterEvent('spell1_13841', 1, 1)
end
end

function mob13841_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13841', math.random(1500, 3000), 1)
end

function mob13841_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13841_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13841_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13841, 1, 'mob13841_Action')
RegisterUnitEvent(13841, 2, 'mob13841_Leave')
RegisterUnitEvent(13841, 3, 'mob13841_Kill')
RegisterUnitEvent(13841, 4, 'mob13841_Die')
